package com.atguigu.springcloud.service.impl;

import com.atguigu.springcloud.mapper.StorageMapper;
import com.atguigu.springcloud.service.StorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 赵赳
 * @CreateTime: 2021/3/7 13:16
 * @Description:
 */
@Service
public class StorageServiceImpl implements StorageService {

    @Autowired
    private StorageMapper storageMapper;

    @Override
    public void decrease(Long productId, Integer count) {
        storageMapper.decrease(productId,count);
    }
}
